package com.hwz.gulimall.ware.dao;

import com.hwz.common.to.SkuHasStockTo;
import com.hwz.gulimall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品库存
 * 
 * @author hwz
 * @email 1281561921@qq.com
 * @date 2025-05-28 13:44:49
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    void addStack(@Param("skuId") Long skuId, @Param("wareId") Long wareId, @Param("skuNum") Integer skuNum);

    List<SkuHasStockTo> hasStock(@Param("skuIds") List<Long> skuIds);
}
